<!doctype html>
<html>
<head>
    <title>列表页面</title>
    <?php $this->load->module('admin/index/page_header');?>
    <link href="<?php echo URLPRE;?>static/admin/css/font_icon.css" rel="stylesheet" />
</head>
<body>
<div id="mainContent"  class="wrap">

    <div class="nav">
        <ul>

            <li><a class="icon-remove-2" href="javascript:;" title="删除" onclick="tools_submit({action:'<?php echo site_url('member/admin/delete_integral_rule');?>',msg:'确定要删除该信息么?'})">删除</a></li>
            <li><a href='<?php echo URLPRE?>member/admin/add_rule/' class="icon-plus" >添加</a></li>
        </ul>
    </div>

    <div class="h_a">积分规则列表</div>
    <div id="content" class="table_full">
        <form method="post">

            <table>
                <tr>

                    <th style="width:1%;"><li><a data="true" title="全选" onclick="tools_select('id[]',this)" href="javascript:;" class="icon-checkbox-checked icon-checkbox-unchecked"> 全选 </a></li></th>
                    <th style="width:2%;">规则ID</th>
                    <th style="width:6%;">规则简称</th>
                    <th style="width:4%;">规则操作</th>
                    <th style="width:4%;">规则积分</th>
                    <th style="width:4%;">操作</th>
                    <th style="width:2%;"></th>
                </tr>

                <?php foreach($rule_array as $k=>$v):?>
                    <tr>
                        <td style="width:2%;">
                            <input type="checkbox" value="<?php echo $v['rid'];?>" name="id[]">

                        </td>

                        <td><a href="" target="_blank"><?php echo $v['rid'];?></a></td>
                        <td style="width:6%;"><?php echo $v['rulename'];?></td>
                        <td style="width:4%;"><?php echo $v['action'];?></td>
                        <td style="width:4%;"><?php echo $v['integral'];?></td>

                        <td style="width:4%" class="btn_min">
                           <a class="icon-pencil" href="<?php echo site_url('/member/admin/edit_rule/'.$v['rid']) ;?>">编辑</a>
                           <a class="icon-remove-2 doDel" href="javascript:;" data-uri="<?php echo site_url('member/admin/delete_integral_rule?id='.$v['rid']);?>">删除</a>

                        </td>
                    </tr>
                <?php endforeach ;?>



            </table>
        </form>
        <div class="page_nav">
            <?php echo $this->mypageclass->show(1); ?>
        </div>
    </div>
</div>

</body>
</html>